﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
   public class 象限标识检查记录表 : TableBase
    {
        public 象限标识检查记录表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
        }

        public override string FormName { get; protected set; } = "象限标识检查记录表";
        /// <summary>
        /// 记录要求
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="recordLocation"></param>
        /// <param name="recordRequire"></param>
        /// <param name="remarks"></param>
        /// <returns></returns>
        public RecordRequirementsEntity SetRecordRequirements(RecordRequirementsEntity entity, string recordLocation,string recordRequire,string remarks)
        {
            entity.SetRecordLocation(recordLocation, "位置", false, true, 0);
            entity.SetRecordRequire(recordRequire, "检查要求",false,true,0);
            entity.SetRemarks(remarks, "备注",false,true,0);
            return entity;
        }
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="firstMeasuredValues"></param>
        /// <param name="confirmResult"></param>
        /// <returns></returns>
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity, string firstMeasuredValues, string confirmResult)
        {
            entity.SetFirstMeasuredValues(firstMeasuredValues, "数量",true,true,0);
            entity.SetConfirmResult(confirmResult, "检查情况", true, true, 0);
            return entity;
        }
    }
}
